home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: howland.reston.ans.net!torn!news!apollo!saed
- From: saed@engn.uwindsor.ca (Saed Aryan,13325,1100,g)
- Subject: Re: [Q] how declare a Template class as a friend
- X-Nntp-Posting-Host: apollo.engn.uwindsor.ca
- Message-ID: <Do6DDq.61C@news.uwindsor.ca>
- Keywords: template, friend
- Sender: news@news.uwindsor.ca (Usenet)
- Reply-To: saed@engn.uwindsor.ca
- Organization: VLSI Research Group - University of Windsor
- Date: Tue, 12 Mar 1996 22:05:50 GMT
-
- Hi all,
-
- my question was (full mail available by request):
-
- > --- How do you declare a template class to be a friend of
- > another non-template class?
-
- and Dave Fernandes replied:
-
- >What if you declare your template class A as a subclass of some other
- >abstract class C, and have C be a friend of B?
-
- My reply: the friendship between C and B is not inherited by A<T>, so again the
- problem is not solved.
-
- Any suggestions?
-
- Aryan.
-
-
-
-
-
-
-
-